package com.tencent.FengZhuang;

public class Teacher {
	private String name;
	private int age;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int tage) {
		if (tage < 25) {
			System.out.println("年龄太太小了");
			age = 25;
		} else {
			age = tage;
		}
	}
}
